package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.AppInstallEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;
import java.util.Map;

/**
 * 应用安装
 * @author xingxing.xiao
 * @date 2020/01/09 15:42
 */
public interface AppInstallModel extends IModel<AppInstallEntity> {

    @Override
    List<AppInstallEntity> findEntitys(Map<String, Object> param);

    AppInstallEntity getByMirrorId(Long mirrorId, String corpid);

    Integer deleteByKey(Long key, String corpid);

    AppInstallEntity getByAppId(Long appId, String corpid);

    Integer updateBatch(List<AppInstallEntity> appInstallEntityList);


    AppInstallEntity getByKey(Long key, String corpid);

    /**
     * 查询实体
     */
    AppInstallEntity getByKeyIgnoreCorpid(Long key);
}
